home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17973 < prev    next >
Encoding:
Text File  |  1996-08-05  |  884 b   |  40 lines

  1. Path: newshost.uwo.ca!usenet
  2. From: Sharon Wang <swang1@julian.uwo.ca>
  3. Newsgroups: comp.lang.c++
  4. Subject: A LINKed LIST Question
  5. Date: 18 Apr 1996 06:04:49 GMT
  6. Organization: UWO, London, Canada
  7. Message-ID: <4l4m21$sr1@falcon.ccs.uwo.ca>
  8. NNTP-Posting-Host: ts3-11.slip.uwo.ca
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Authenticated: swang1@ts3-11.slip.uwo.ca
  13. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  14.  
  15. I have the following def'n
  16.  
  17. class Node {
  18.     ItemType item1;  // ItemType define
  19.     ItemType item2;
  20.     ...
  21. public:
  22.     functions on item;
  23. };
  24.  
  25. class NodeList {
  26.     Node  N;
  27.     Node* FLink;
  28.     Node* BLink;
  29. public:
  30.     functions on Node;
  31. };
  32.  
  33. However, I can't access the members of Node in the list since
  34. they are "private".  How can I get arount this WIHTOUT using
  35. access functions in class Node.
  36.  
  37. Sharon
  38. <swang1@julian.uwo.ca>
  39.  
  40.